package arraysUtilClassCommonMethods;

import java.util.Arrays;

/**
 * @ClassName ArraysEquals
 * @Description 数组内容比较
 * @Author 李明忠
 * @Date 2025/5/28 20:11
 * @Version 1.0
 */
public class ArraysEquals {
    public static void main(String[] args){
        int[] arr1 = {1, 2, 3, 4, 5};
        int[] arr2 = {1, 2, 3, 4, 5};
        int[] arr3 = {10, 2, 3, 4, 5};

        System.out.println(Arrays.equals(arr1, arr2));//true
        System.out.println(Arrays.equals(arr1, arr3));//false
        System.out.println(Arrays.equals(arr2, arr3));//false
    }
}
